Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@jagrosh
jagrosh / Growing A Discord Server.md
Last active July 29, 2026 20:46
Tips for creating and growing a new Discord server

This guide is kept up-to-date as Discord and available resources change!
A basic server template is available here

Creating and Growing a Discord Server

logo

Introduction

Hello! I'm jagrosh#4824! I'm writing this guide to try to help new server owners set up and grow their servers, which is a commonly-requested topic. It's very easy to go about this the wrong way, so it's best to be prepared and make smart decisions so that your community can flourish!

Background

@ThePirateWhoSmellsOfSunflowers
ThePirateWhoSmellsOfSunflowers / netrlogonsamlogonwithflags.py
Created December 12, 2024 23:03
Perform a netrlogonsamlogonwithflags (LogonNetworkTransitive) with a server account, it uses netlogon as SSP
from impacket.dcerpc.v5 import epm, lsad, rpcrt, transport, lsat, ndr, nrpc
from impacket.uuid import bin_to_uuidtup
from binascii import unhexlify, hexlify
from struct import pack, unpack
from random import randbytes
import sys
# Perform a netrlogonsamlogonwithflags with a server account, it uses netlogon as SSP (see [MS-NRPC] 3.3)
# Pure TCP RPC is used (ncacn_ip_tcp option)
# RC4 is used here because to use AES, impacket must be patched
@noahbliss
noahbliss / kali-zshrc
Last active July 29, 2026 20:41
Kali's default zshrc
# ~/.zshrc file for zsh interactive shells.
# see /usr/share/doc/zsh/examples/zshrc for examples
setopt autocd # change directory just by typing its name
#setopt correct # auto correct mistakes
setopt interactivecomments # allow comments in interactive mode
setopt magicequalsubst # enable filename expansion for arguments of the form ‘anything=expression’
setopt nonomatch # hide error message if there is no match for the pattern
setopt notify # report the status of background jobs immediately
setopt numericglobsort # sort filenames numerically when it makes sense
@Saif1316
Saif1316 / GATE-CSE-DS-Resources.md
Created November 20, 2025 16:03 — forked from madhurimarawat/GATE-CSE-DS-Resources.md
A collection of the best free GATE preparation resources for CSE & Data Science. Contributions are welcome!

📌 GATE Resources – CSE & Data Science

I’ve compiled all the resources that helped me in my GATE preparation, and I hope they help you too! 🚀
These are high-quality, freely available study materials that cover notes, past papers, and courses.

@ChristopherA
ChristopherA / zsh_opinionated_best_practices.md
Last active July 29, 2026 20:36
Zsh - Opinionated Best Practices

Zsh Opinionated - A Guide to Best Practices

  • Abstract: This guide provides best practices for writing clear, maintainable, and robust Zsh scripts. Aimed at helping developers transition from Bash to Zsh, particularly on macOS, this guide offers practical advice and examples for creating standardized and efficient scripts.

  • Copyright This text of this guide is Copyright ©️2024 by Christopher Allen, and is shared under spdx:CC-BY-SA-4.0 open-source license. All the example code is relenquished to the public domain under spx:CC0-1.0.

  • Tags: #zsh #scripting #cli #opinionated

@MitjaNemec
MitjaNemec / rogowski_mod.py
Last active July 29, 2026 20:35
KiCad Rogowski footprint
import KicadModTree
import math
def rogowski_footprint(internal_dia, external_dia, via_drill, via_anular, track_width, clearance):
# get via clearance diameter
via_diameter = via_anular + 2 * clearance
# get number of vias
nr_vias = math.floor(math.pi * (internal_dia+via_diameter/2) / ((via_diameter + track_width) / 2))
@baloe
baloe / RenderViewCloning.py
Last active July 29, 2026 20:33 — forked from lhofmann/RenderViewCloning.py
Clone ParaView Render View
'''Functions to replicate renderViews in ParaView.
v1: Theodore Baltis (https://discourse.paraview.org/u/theodorebaltis)
https://discourse.paraview.org/t/feature-request-clone-renderview/2370/3
v2: Bastian Loehrer (https://discourse.paraview.org/u/bastian)
- merged the separate scripts into one file with the dedicated functions split_right() and split_down()
- added function clone_to_new_layout
v3: Lutz Hofmann (https://github.com/lhofmann/)
- support sources with multiple output ports
- use vtkSMProxyClipboard for copying properties
@jhwheeler
jhwheeler / bigONotation.js
Last active July 29, 2026 20:31
Big O Notation Exercises
// 1. Even or odd
function isEven(value){
if (value % 2 == 0){
return true;
}
else
return false;
}